<?php
/**
 * User: tridungpham
 * Date: 7/6/11
 * Time: 11:05 AM
 */
class EController extends Controller
{
    function prepareModule(&$moduleSet,&$view)
    {
        $size = $moduleSet->getSize();
        $data = array();
        for($i = 0; $i < $size; $i++)
        {
            $row = $moduleSet->getRow($i);
            $module =& $this->loadModule($row->module_name);
            $data =& $module->render();
            $view->appendBlockData(array('modules' => $data),$row->block_name);
        }
    }
}
